package project.menu.ordermenu;

import project.controllers.Controller;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;
import controllers.IAutoservice;

public class OffsetOrdersDeadlineDate implements IMenuItem {

	private String name= "Shift order's deadline date";
	private final Integer id= 5;
	private static IMenu submenu;	
	private Controller con;
	private Navigator n;
	
	public OffsetOrdersDeadlineDate(){
		con=Controller.getInstance();
		n=Navigator.getInstance();
	}
	
	
	public Integer getId() {
		return id;
	}
		
	public void action(IAutoservice aut) {
		
		//shift
	
		aut.ShirtTimeOrder(con.getDate(), con.getNumberOrder());
		n.drawMenu(submenu);
				
	}

	public static void setMenu(IMenu menu) {
		submenu = menu;
	}

	
	public String getNameItem() {
		
		return name;
	}

	
	
}
